import React from "react";
import ReactDOM from "react-dom";
import Router from "./router";
import { Provider } from "react-redux";
import store from "./store";
import { ConfigProvider } from "antd";
import "@/assets/css/index.scss";
import zhCN from "antd/es/locale/zh_CN";
import moment from "moment";
import "moment/locale/zh-cn";
import "antd/dist/antd.min.css"
moment.locale("zh-cn");

ReactDOM.render(
  <ConfigProvider
    locale={zhCN}
    getPopupContainer={(node) => {
      if (node && node.className == "ant-select-selector")
        return node.parentNode;
      return document.body;
    }}
  >
    <Provider store={store}>
      <Router />
    </Provider>
  </ConfigProvider>,
  document.getElementById("root")
);
